home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_02
/
9n02031a
< prev
next >
Wrap
Text File
|
1990-12-11
|
356b
|
16 lines
int
TreeSearch( int NodeNumb, int Value )
{
while( NodeNumb != -1 && Value
!= Tree[NodeNumb].Data )
{
if( Value < Tree[NodeNumb].Data )
NodeNumb = Tree[NodeNumb].Left;
else
NodeNumb = Tree[NodeNumb].Right;
}
}